import Modal from "@ui/RJMart/modal";
import "./style.scss";

class CotentComp extends React.Component {
    render() {
        return (
            <div className={"carousel-modal-content"}>
                <p>ssss</p>
            </div>
        );
    }
}

export default class CarouseModal extends React.Component {
    constructor() {
        super();
        this.state = {};
    }

    render() {
        const { getRef, content, onConfrim } = this.props;
        return (
            <div className="rj_l-cancel-modal-1">
                <Modal
                    ref={v => getRef(v)}
                    size="big"
                    title=""
                    content="是否确认"
                    icon="info"
                    type="choose"
                    childom={<CotentComp />}
                    onConfirm={() => {
                        if (onConfrim) {
                            onConfrim();
                        }
                    }}
                    onCancel={() => {
                        console.log("Cancel");
                    }}
                />
            </div>
        );
    }
}
